package cn.bdqn.pn.reposity.base;

import cn.bdqn.pn.pojo.base.Comment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface CommentRepository extends JpaRepository<Comment,Integer>, JpaSpecificationExecutor<Comment> {

    //查询商品评价星级占比率
    List<Comment> getCommentByCommodityid(Long id);
}
